package service.impl;

import dao.StoreDAO;
import entity.Storehouse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import service.StoreService;

import java.util.List;

/**
 * Created by asus on 2017/6/22.
 */
@Service("storeService")
public class StoreServiceImpl implements StoreService {
    @Autowired
    private StoreDAO storeDAO;

    @Override
    public List<Storehouse> getAll() {
        return storeDAO.findAll();
    }
}
